<?php

class Application_Model_Phone extends Application_Model_Product
{
	protected $_phoneId;
	protected $_type;
	public static $_typePhoneChoice = array(		'1' => 'Smapt phone',
										 		'2' => 'Cell phone',
												'3' => 'Home phone',
										);
	
	
	public function getAttribs()
	{
		$attribs = array(
				'name'				=> $this->getName(),
				'description'		=> $this->getDescription(),
				'url'				=> $this->getUrl(),
				'images'			=> $this->getImages(),
				'model'				=> $this->getModel(),
				'brand'				=> $this->getBrand(),
				'type'				=> $this->getType(),
		);
		return $attribs;
	}
	/**
	 * @return the $_phoneId
	 */
	public function getPhoneId() {
		return $this->_phoneId;
	}

	/**
	 * @return the $_type
	 */
	public function getType() {
		return $this->_type;
	}

	/**
	 * @param field_type $_phoneId
	 */
	public function setPhoneId($_phoneId) {
		$this->_phoneId = $_phoneId;
	}

	/**
	 * @param field_type $_type
	 */
	public function setType($_type) {
		$this->_type = $_type;
	}

	/**
	 * 
	 * @param int $i
	 * @return multitype:string
	 */
	public function getTypeRender($i){
		return $this::$_typePhoneChoice[$i];
	}
	

	
	
}